<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@page import="java.util.ArrayList, java.util.Iterator, cs4280.bean.*"%>
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>

        <meta http-equiv="content-type" content="text/html; charset=utf-8" />

        <title>Vertebrate  by Free Css Templates</title>

        <meta name="keywords" content="" />

        <meta name="description" content="" />

        <link href="default.css" rel="stylesheet" type="text/css" />



        <style type="text/css">

            @import "gallery.css";

        </style>
<script type="text/javascript">
                    function bookTicket() {
                        document.getElementById("screeningid").value = document.getElementById("screening-time").value;
                        document.getElementById("bookTicket").submit();
                    }
                    function goIndex(){
                        
                        document.getElementById("navigation").todo.value = "doindex";
                        document.navigation.submit();

                    }
                    function goManage(){
                        document.getElementById("navigation").todo.value = "domanage";
                        document.navigation.submit();

                    }
                </script>
    </head>
    <body>

        <div id="wrapper">

            <div id="header">

                <div id="logo">

                    <h1><a href="#">webmoive </a></h1>

                    <h2><a href="http://www.freecsstemplates.org/">By Phoena and Yvonne</a></h2>

                </div>

                <!-- end div#logo -->

                <div id="menu">

                    <ul>
                        <form name="home" id="home" method="post" action="index.do">
                            <li ><a onclick="home.submit();">Homepage</a></li>
                        </form>
                        <li class="active"><a href="#" >Movies</a></li>

                        <form name="discuss" id="discuss" method="post" action="/assignmentCinema/">
                            <input type="hidden" name="todo" id="todo" value="messageBox" />
                            <li><a onclick="discuss.submit();">Discuss</a></li>
                        </form>
                        <form name="manage" id="manage" method="post" action="memberControl.do">
                            <li><a onclick="manage.submit();">Manage</a></li>
                        </form>
                    </ul>

                </div>

                <!-- end div#menu -->

            </div>

            <div>

                <div id="page">

                    <div id="page-bgtop">

                        <div id="content">

                            <div id="gallery-bg">

                                <div id="gallery-bgtop">

                                    <div id="gallery-bgbtm">

                                        <div id="foobar">



                                            <div class="viewer">

                                                <div class="reel">

                                                    <div class="slide"> <img src="images/img13.jpg" alt=""/> <span>Pulp Fiction</span> </div>

                                                </div>
                                            </div>

                                        </div>



                                        <!-- end -->

                                    </div>

                                </div>

                            </div>

                            <div class="post">

                                <div class="post-bgtop">

                                    <div class="post-bgbtm">


                                        <jsp:useBean id="movie" type="cs4280.bean.Movie" scope="request" />
                                        <div class="entry">
                                            <img class="film_img" src="<%=movie.getImgurl()%>"/>
                                            <h2 class="title"><a href="#"><%=movie.getName()%></a></h2>
                                            <p>Date: <%=movie.getOpendate()%><br/> Duration: <%=String.valueOf(movie.getDuration())%> mins<br/>
                                                <%=movie.getStoryLine()%>
                                            </p>
                                                <form name="bookTicket" id="bookTicket" method="post" action="<%=(String) request.getAttribute("javax.servlet.forward.request_uri")%>">
                                                <input type="hidden" name="todo" id="todo" value="bookticket" />
                                                <input type="hidden" name="screeningid" id="screeningid" value="" />
                                                <label for="screening-time">Screening Time:  </label>
                                                <select type="select" name="screening-time" id="screening-time">
                                                    <%             ArrayList<Screening> screenings = (ArrayList<Screening>) request.getAttribute("screenings");
                                                                Iterator<Screening> it = screenings.iterator();
                                                                while (it.hasNext() != false) {
                                                                    pageContext.setAttribute("screening", (Screening) it.next());

                                                    %>
                                                    <jsp:useBean id="screening" type="cs4280.bean.Screening" scope="page" />
                                                    <option value="<%=screening.getId()%>">  Time: <%=screening.getShowtime()%> | House:<%=String.valueOf(screening.getHouseid())%>| Price: <%=String.valueOf(screening.getPrice())%>
                                                    </option>
                                                    <%
                                                                }
                                                    %>
                                                </select>
                                                    <input type="submit" value="book" />
                                            </form>
                                        </div>
                                    </div>

                                </div>

                            </div>







                        </div>

                        <!-- end div#content -->

                        <div id="sidebar">

                            <div id="sidebar-bgtop">

                                <div id="sidebar-bgbtm">

                                    <ul>

                                        <li id="login">

                                            <h2>User Login</h2>

                                            <jsp:include page="user.jsp"/>

                                        </li>

                                        <li>

                                            <h2>Lorem Ipsum</h2>

                                            <ul>

                                                <li><a href="#">Fusce dui neque fringilla</a></li>

                                                <li><a href="#">Eget tempor eget nonummy</a></li>

                                                <li><a href="#">Magna lacus bibendum mauris</a></li>

                                                <li><a href="#">Nec metus sed donec</a></li>

                                                <li><a href="#">Magna lacus bibendum mauris</a></li>

                                                <li><a href="#">Velit semper nisi molestie</a></li>

                                                <li><a href="#">Eget tempor eget nonummy</a></li>

                                            </ul>

                                        </li>

                                        <li>

                                            <h2>Volutpat Dolore</h2>

                                            <ul>

                                                <li><a href="#">Nec metus sed donec</a></li>

                                                <li><a href="#">Magna lacus bibendum mauris</a></li>

                                                <li><a href="#">Velit semper nisi molestie</a></li>

                                                <li><a href="#">Eget tempor eget nonummy</a></li>

                                                <li><a href="#">Nec metus sed donec</a></li>

                                                <li><a href="#">Magna lacus bibendum mauris</a></li>

                                                <li><a href="#">Velit semper nisi molestie</a></li>

                                            </ul>

                                        </li>

                                        <li>

                                            <h2>Bebindum Mauris </h2>

                                            <ul>

                                                <li><a href="#">Nec metus sed donec</a></li>

                                                <li><a href="#">Magna lacus bibendum mauris</a></li>

                                                <li><a href="#">Velit semper nisi molestie</a></li>

                                                <li><a href="#">Eget tempor eget nonummy</a></li>

                                                <li><a href="#">Nec metus sed donec</a></li>

                                                <li><a href="#">Velit semper nisi molestie</a></li>

                                            </ul>

                                        </li>

                                        <li>

                                            <h2>Phasellus Tellus</h2>

                                            <ul>

                                                <li><a href="#">Eget tempor eget nonummy</a></li>

                                                <li><a href="#">Nec metus sed donec</a></li>

                                                <li><a href="#">Magna lacus bibendum mauris</a></li>

                                                <li><a href="#">Velit semper nisi molestie</a></li>

                                            </ul>

                                        </li>

                                    </ul>

                                </div>

                            </div>

                        </div>

                        <!-- end div#sidebar -->

                        <div style="clear: both; height: 1px"></div>

                    </div>

                </div>

                <!-- end div#page -->

            </div>

            <!-- end div#wrapper -->

            <div id="footer-wrapper">

                <div id="footer">

                    <p id="legal">Copyright &copy; 2007 Vertebrate . All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>

                    <p id="links"><a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a></p>

                </div>

            </div>
        </div>
        <!-- end div#footer -->

    </body>

</html>

